package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: sovy
 * @date: 2020/10/14
 * @description: 服务器信息采集记录
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "smart_audit.f_server_collect")
public class ServerCollect implements Serializable {
    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    /**
     * 服务器id
     */
    @TableField(value = "intServerInfoId")
    private Integer serverInfoId;

    /**
     * cpu使用率
     */
    @TableField(value = "douCPUUsedRate")
    private Double cpuUsedRate;

    /**
     * 采集cpu原生信息
     */
    @TableField(value = "vcCpuInfo")
    private String cpuInfo;

    /**
     * 内存大小
     */
    @TableField(value = "douMemory")
    private Double memory;

    /**
     * 已使用内存
     */
    @TableField(value = "douMemoryUsed")
    private Double memoryUsed;

    /**
     * 内存使用率
     */
    @TableField(value = "douMemoryUsedRate")
    private Double memoryUsedRate;

    /**
     * 采集内存原生信息
     */
    @TableField(value = "vcMemoryInfo")
    private String memoryInfo;

    /**
     * 已使用磁盘
     */
    @TableField(value = "douSpaceUsed")
    private Double spaceUsed;

    /**
     * 硬盘总大小(G)
     */
    @TableField(value = "douSpace")
    private Double space;

    /**
     * 磁盘使用率
     */
    @TableField(value = "douSpaceUsedRate")
    private Double spaceUsedRate;

    /**
     * 采集磁盘原生信息
     */
    @TableField(value = "vcFsstatInfo")
    private String fsstatInfo;

    /**
     * 采集时间
     */
    @TableField(value = "dtCreateTime")
    private Date dtCreateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_INTID = "intId";

    public static final String COL_INTSERVERINFOID = "intServerInfoId";

    public static final String COL_DOUCPUUSEDRATE = "douCPUUsedRate";

    public static final String COL_VCCPUINFO = "vcCpuInfo";

    public static final String COL_DOUMEMORY = "douMemory";

    public static final String COL_DOUMEMORYUSED = "douMemoryUsed";

    public static final String COL_DOUMEMORYUSEDRATE = "douMemoryUsedRate";

    public static final String COL_VCMEMORYINFO = "vcMemoryInfo";

    public static final String COL_DOUSPACEUSED = "douSpaceUsed";

    public static final String COL_DOUSPACE = "douSpace";

    public static final String COL_DOUSPACEUSEDRATE = "douSpaceUsedRate";

    public static final String COL_VCFSSTATINFO = "vcFsstatInfo";

    public static final String COL_DTCREATETIME = "dtCreateTime";
}